package com.by.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@TableName("s_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    Integer id;

    @NotEmpty(message = "账号不能为空")
    String account;

    String password;

    String name;

    String mobile;

    @TableLogic
    int isdel;
}
